//登录接口需要携带data(username,password)参数的ts类型
export interface loginForm {
  username: string,
  password: string
}
interface dataType {
  token?: string,
  message?: string
}
//限制登录接口返回数据类型
export interface loginResponse {
  code: number,
  data: dataType
}
interface userInfo {
  userId: number,
  avatar: string,
  username: string,
  password: string,
  desc: string,
  roles: string[],
  buttons: string[],
  routes: string[],
  token: string
}
interface user {
  checkUser: userInfo
}
//定义用户接口服务端返回数据的ts类型
export interface userResponse {
  code: number,
  data: user
}